#ifndef GENERATOR_GLOBAL_H
#define GENERATOR_GLOBAL_H

#include <QMetaType>
#include <QMap>
#include <QString>

enum GeneratorState {
    GenPowerOn,
    GenPowerOff,
    GenShakeHand,

    GenRFR,  // Se Pian
    GenKvValue,
    GenMaValue,
    GenMsValue,
    GenMxValue,
    GenFCL,
    GenFCS,
    GenMxMode,
    GenMsMode,

    GenRFF, // Tou Shi
    GenFRY, // TouShi started
    GenFRN, // TouShi ended
    GenFKvValue,
    GenFMaValue,
    GenFMsValue,
    GenIBY, // IBS on
    GenIBN, // IBS off

    GenAECY, // AEC on
    GenDenValue,
    GenAECN, // AEC off
    GenDAEY,
    GenDAEN,
    GenDatValue,
    GenDAESaved,
    GenFILY,
    GenFILN,
    GenFICY,
    GenFICN,
    GenFIRY,
    GenFIRN,

    GenPreOn,
    GenPreOff,
    GenReadyOn,
    GenReadyOff,
    GenXRayOn,
    GenXRayOff,
    GenFaultOn,
    GenFaultOff,

    GenError,

    GenSerialPortOpened,
    GenSerialPortOpenFailed,
    GenSerialPortClosed,
};

Q_DECLARE_METATYPE(GeneratorState)
static int gs = qRegisterMetaType<GeneratorState>("GeneratorState");

#endif // GENERATOR_GLOBAL_H
